package com.googlecode.boliang.q10;

public class LinkedNode {

	private int nodeValue; 
	private LinkedNode nextNode; 
	

	public LinkedNode(int nodeValue, LinkedNode nextNode) {
		
		this.nodeValue = nodeValue; 
		this.nextNode = nextNode; 
	}
	
	public LinkedNode(int nodeValue) {
		this.nodeValue = nodeValue; 
		this.nextNode = null;
	}
	
	public int getNodeValue() {
		return nodeValue;
	}

	public void setNodeValue(int nodeValue) {
		this.nodeValue = nodeValue;
	}

	public LinkedNode getNextNode() {
		return nextNode;
	}

	public void setNextNode(LinkedNode nextNode) {
		this.nextNode = nextNode;
	}

}
